package com.zhonghe.active4j;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;

import lombok.extern.slf4j.Slf4j;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * 入口启动类
 * @author teli_
 *
 */
@SpringBootApplication
@EnableScheduling //开启定时任务注解
@Slf4j
public class Active4jbootApplication {

	public static void main(String[] args) throws UnknownHostException {
		log.info("============服务开始启动！=============");
	    SpringApplication.run(Active4jbootApplication.class, args);
		log.info("============服务启动成功！！！=============");

	}

}

